package com.fqh.manager.controller;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.fqh.manager.entity.TSysUser;

/**
* @author fqh 
* @version 创建时间：2017年12月7日 上午10:34:26
* 类说明
*/
@Controller
public class TestController {
	
	@RequestMapping("/hello")
	public String hello(Model model) {
		TSysUser sysuser= new TSysUser();
		List<TSysUser> lists = new ArrayList<>();
		sysuser.setId(1);
		sysuser.setUsername("fqh");
		lists.add(sysuser);
		TSysUser sysuser1= new TSysUser();	
		sysuser1.setId(1);
		sysuser1.setUsername("fqh");
		lists.add(sysuser1);
		model.addAttribute("lists",lists);	
		return "hello";
	}
}
